<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$Think.lang.environment_check} - {$Think.lang.install}</title>

    <css href="__ROOT__/asserts/bootstrap/css/bootstrap.yeti.min.css" />
    <js href="__ROOT__/asserts/js/jquery-2.0.0.min.js" />
    <!--[if lt IE 9]>
    <js href="__ROOT__/asserts/bootstrap/js/html5shiv.min.js" />
    <js href="__ROOT__/asserts/bootstrap/js/response.min.js" />
    <![endif]-->
</head>
<body>

<div class="container">
    <div class="header">
        <h3 class="text-muted">{$Think.lang.install} [ {$Think.lang.environment_check} ]</h3>
    </div>


    <div class="well">

        <if condition="$writeable_config">
            <div class="alert alert-success well-sm" role="alert">
                {$Think.lang.folder} ./_CFG/ {$Think.lang.writable} <span class="glyphicon glyphicon-ok"></span>
            </div>
        <else />
            <div class="alert alert-danger well-sm" role="alert">
                {$Think.lang.folder} ./_CFG/ {$Think.lang.not_writable} <span class="glyphicon glyphicon-remove"></span>
            </div>
        </if>

        <if condition="$writeable_run">
            <div class="alert alert-success well-sm" role="alert">
                {$Think.lang.folder} ./_RUN/ {$Think.lang.writable} <span class="glyphicon glyphicon-ok"></span>
            </div>
            <else />
            <div class="alert alert-danger well-sm" role="alert">
                {$Think.lang.folder} ./_RUN/ {$Think.lang.not_writable} <span class="glyphicon glyphicon-remove"></span>
            </div>
        </if>

        <if condition="$writeable_data">
            <div class="alert alert-success well-sm" role="alert">
                {$Think.lang.folder} ./data/ {$Think.lang.writable} <span class="glyphicon glyphicon-ok"></span>
            </div>
            <else />
            <div class="alert alert-danger well-sm" role="alert">
                {$Think.lang.folder} ./data/ {$Think.lang.not_writable} <span class="glyphicon glyphicon-remove"></span>
            </div>
        </if>

        <if condition="$dependency_pdo">
            <div class="alert alert-success well-sm" role="alert">
                {$Think.lang.dependency} pdo {$Think.lang.exists} <span class="glyphicon glyphicon-ok"></span>
            </div>
            <else />
            <div class="alert alert-danger well-sm" role="alert">
                {$Think.lang.dependency} pdo {$Think.lang.not_exists} <span class="glyphicon glyphicon-remove"></span>
            </div>
        </if>

        <if condition="$dependency_pdo_mysql">
            <div class="alert alert-success well-sm" role="alert">
                {$Think.lang.dependency} pdo_mysql {$Think.lang.exists} <span class="glyphicon glyphicon-ok"></span>
            </div>
            <else />
            <div class="alert alert-danger well-sm" role="alert">
                {$Think.lang.dependency} pdo_mysql {$Think.lang.not_exists} <span class="glyphicon glyphicon-remove"></span>
            </div>
        </if>

        <if condition="$dependency_file_get_contents">
            <div class="alert alert-success well-sm" role="alert">
                {$Think.lang.dependency} file_get_contents {$Think.lang.exists} <span class="glyphicon glyphicon-ok"></span>
            </div>
            <else />
            <div class="alert alert-danger well-sm" role="alert">
                {$Think.lang.dependency} file_get_contents {$Think.lang.not_exists} <span class="glyphicon glyphicon-remove"></span>
            </div>
        </if>

        <if condition="$dependency_mb_strlen">
            <div class="alert alert-success well-sm" role="alert">
                {$Think.lang.dependency} mb_strlen {$Think.lang.exists} <span class="glyphicon glyphicon-ok"></span>
            </div>
            <else />
            <div class="alert alert-danger well-sm" role="alert">
                {$Think.lang.dependency} mb_strlen {$Think.lang.not_exists} <span class="glyphicon glyphicon-remove"></span>
            </div>
        </if>

        <if condition="$environment_error eq 0">

            <a class="btn btn-primary btn-md" href="{:U('Install/commonstep2')}">{$Think.lang.next_step}</a>


        </if>



    </div>

    <div class="footer">
        <p>{$Think.lang.contact}</p>
    </div>

</div>

<script type="text/javascript">var TPX={PATH_ROOT : '__ROOT__',PATH_ASSERTS:'__ROOT__/asserts',SUFFIX_JS:'__JS_SUFFIX__','SUFFIX_CSS':'__CSS_SUFFIX__','LANG':'<?php echo LANG_SET; ?>'};</script>
<js href="__ROOT__/asserts/bootstrap/js/bootstrap__JS_SUFFIX__" />
<js href="__ROOT__/asserts/js/jquery.extern__JS_SUFFIX__" />
</body>
</html>